﻿namespace EyeOpen.Validation.Test
{
    using EyeOpen.Validation.Mapping;

    /// <summary>
    /// Implements the logic to attach validators to properties of a <see cref="FooEntity"/>.
    /// </summary>
    public class FooValidationMapping : ValidationMapping<FooEntity>
    {
        protected override void Map()
        {
            Map(x => x.Name)
                .Required()
                .Length(2);
        }
    }
}